package com.test.ddaidai.main_account;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
import com.test.ddaidai.BaseActivity;
import com.test.ddaidai.main_account_approve.EmailApproveActivity;
import com.test.ddaidai.main_account_approve.ExtraApproveActivity;
import com.test.ddaidai.main_account_approve.PhoneApproveActivity;
import com.test.ddaidai.main_account_approve.RealnameApproveActivity;
import com.test.ddaidai_android.activity.R;

public class ApproveManagerActivity extends BaseActivity implements OnClickListener {
	
	TextView btn_main_account_approvemanager_phone,btn_main_account_approvemanager_realname,
	 btn_main_account_approvemanager_email,btn_main_account_approvemanager_extra;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.activity_centeraccount_main_approvemanager);
		
		setTitle(getString(R.string.main_account_approvemanager),
				R.drawable.ic_back_normal,false, 0,false);
		
		btn_main_account_approvemanager_phone = (TextView) findViewById(R.id.btn_main_account_approvemanager_phone);
		btn_main_account_approvemanager_phone.setOnClickListener(this);
		btn_main_account_approvemanager_realname = (TextView) findViewById(R.id.btn_main_account_approvemanager_realname);
		btn_main_account_approvemanager_realname.setOnClickListener(this);
		btn_main_account_approvemanager_email = (TextView) findViewById(R.id.btn_main_account_approvemanager_email);
		btn_main_account_approvemanager_email.setOnClickListener(this);
		btn_main_account_approvemanager_extra = (TextView) findViewById(R.id. btn_main_account_approvemanager_extra);
		btn_main_account_approvemanager_extra.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {
		case R.id.btn_main_account_approvemanager_phone:
			getActivity().startActivity(new Intent(getActivity(),PhoneApproveActivity.class));
			break;
		case R.id.btn_main_account_approvemanager_realname:
			getActivity().startActivity(new Intent(getActivity(),RealnameApproveActivity.class));
			break;
		case R.id.btn_main_account_approvemanager_email:
			getActivity().startActivity(new Intent(getActivity(),EmailApproveActivity.class));
			break;
		case R.id.btn_main_account_approvemanager_extra:
			getActivity().startActivity(new Intent(getActivity(),ExtraApproveActivity.class));
			break;
		default:
			break;
		}
	}
	
}
